package com.bjpowernode.shop.feign;

import com.bjpowernode.shop.domain.Prod;
import com.bjpowernode.shop.feign.impl.ProductServiceFeignImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "product-service",fallback = ProductServiceFeignImpl.class)
public interface ProductServiceFeign {
    @GetMapping("/prod/prod/listByPidList")
    List<Prod> listByPidList(@RequestParam("pidList")List<Long> pidList);
}
